package com.watercube.service.base;

import java.util.List;

/**
 * @Project: water-cube-dao
 * @Description
 * @author yangyh
 * @date 2017年12月14日
 * @version V1.0
 */
public interface BaseService<T, K, X> {

	long countByExample(X example);

	int deleteByExample(X example);

	int deleteByPrimaryKey(K clientId);

	int insert(T record);

	int insertSelective(T record);

	List<T> selectByExample(X example);

	T selectByPrimaryKey(K clientId);

	int updateByExampleSelective(T record, X example);

	int updateByExample(T record, X example);

	int updateByPrimaryKeySelective(T record);

	int updateByPrimaryKey(T record);

}
